remove "Javascript alert" string on Mac OSX platform.