fixed html5text stuff for javascript kind of, next step is to see about making a json request handler