Escaping fields in JS