Fixing jslint warning