Major code cleanup and consistency

Following @mdo’s guidelines: http://mdo.github.io/code-guide/. Pulled
all resources down locally to help w/ support for IE8.