Run dos2unix, remove trailing spaces
Some style fixes
Use function-scope 'use strict'; instead of global-scope

See: http://jslinterrors.com/use-the-function-form-of-use-strict