Port of bikeracks to angularjs