Fix the crappy js-escaping a better way.