/*jslint browser: true, evil: true, nomen: true */

updated the function matching regex to avoid ‘.’, and added ‘use
strict’;