Add strict mode and jslint fixes