added .idea to gitingore
removed test.js
refactor to pass jshint