Update bootstrap.js

updated unregister function for new way