Added javascript data push to rails