fix javascript bugs and remove gon
Merge pull request #5 from evbots/fix_js

fix javascript bugs and remove gon