move 'use strict' out of global scope

If it's in global scope and minimized, it can mess up files concatenated after.

This change also fixes jshint's complaints about main.js.