Fix special js chars, issue 551