MDL-24779 mod/hotpot tidy up calls to js_value() method which escapes and encodes unicode strings for javascript