set up rails utils javascript initializations
change name of function
remove deadly code
make request non ajax
change width dimension of chart
write up function that checks if the data available and data need  are sufficient