Modified js and css files to tidy presentation and funcitons