Fixed to get jslint to pass