Updated files based on feedback

I added 'use strict' to functions to make my jshint happy.