A script mapping HTML attributes to Javascript and jQuery functions