Adding use strict and the license to new file
Fixing jshint issues