Syntax and readability fixes

- Fix Jade syntax issues
- Fix html5 w3c compliance issues
- edit main.js for better readability
- replace tabs with spaces in main.js