Minor JavaScript tweaks.

* fix undefined variable
* use the same quotes type
* enable strict mode
Merge pull request #3 from XhmikosR/js

Minor JavaScript tweaks.