jquery cleanup register DOM function added to library controller