Escape js with esc_js rather than json_encode for compatibility reasons

json_encode adds a backslash in one of the parameters where we don't want one.

See: https://github.com/GigaOM/gigaom/issues/6072