Apply FixMyJS

and use function form of "use strict" as recommended by jshint