Java script escaping fix