This adds a fragment requirements class to allow plugins to register JavaScript to be used in an mform.