tidied up js files
added chartsjs