fixed autoescaping issue with js invalidField