Make javascript code follow code style guide

According to the jQuery [javascript style guide](http://contribute.jquery.org/style-guide/js/)

> Strings that require inner quoting must use double outside and single inside.