Fixing JS and HTML to work in IE
A little cleanup/refactoring, moved the css into own file and idented HTML correctly