refactor the js
Merge pull request #3 from novalagung/master

refactor the js