changing structure of project so that it does not get data using ruby... using javascript