fixed a bug
Merge pull request #7 from philsogaDGI/master

fixed a bug in the js file