fix escape in javascript