Cleanup of html file. Split into css and js. Worked on js code.