Refactor Javascript to make the entire BikeMap an object