Compilation of some custom JavaScript event utilities.