fixed spare } in bar.js

Had an extra closing bracket.