set up rails and started javascript