First version on passing js data to rails