Made the main file .js to make it work for me.
Merge pull request #1 from icylace/patch-1

change main file to javascript for improved portability