More refactoring

Moved inline CSS to external CSS file
Moved javascript to external js file