fixed js apostrophe bug