Fix the usage of apostrophes within javascript

Simply added a addslashes()