adds weeklyview js reorganizes functions and files