Adding "use strict"; tags, etc.

Also, not mixing spaces and tabs, and adding jshint hints.