send back data from js to ruby