Create bar.js

Fixes #5
Update bar.js

fixes #6
Update bar.js

fixes #7
Fixed mistake from last commit
Merge pull request #8 from danthegoodman/bar

Bar