Refactoring

- Added gem to get Rails routes in javascript client side
- Added javascript queue class