move to a js file
jshint and whitespace
untabity
tabify