merged frontend javascript into the rails app