changed bins to javascript
Merge pull request #2 from mren/bins-in-js

changed bins to javascript