Outsource css/js snippets to external asset files
Refactoring main.js & jshinint
Add immediately invoked singleton wrapper...

... to avoid polluting the global namespace