Escape javascript before submit