add 'use strict' directive, wrapped in local scope to protect libs
remove trailing comma, which was breaking jshint, preventing build