Minor JavaScript tweaks.

* fix undefined variable
* use the same quotes type
* enable strict mode

PS. We need some kind of automated way to generate the minified file :/