Added use strict at the top of the files and fixed any bugs related to using strict