Fix to pass jslint test