Fixing JS to use bower (not finished)