added javascript for 7 day line graph