Allow setting title from props
Allow setting title from props

Also move setState to below JSON.parse because react-dev-tools also uses
sendmessage

openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js