moved 'strict mode' under function
Merge pull request #105 from darkowlzz/jshint

moved 'strict mode' under function