Fix some JS bugs and tidy up the code

Add section headings
Fix no more widows snippet
Remove redundant orientation change plugin
General tidy up