* add "use strict" statement
* minor refactor to make jshint happy