Update ui.tabs.closable.js

I have changed closableClick to beforeClose in order to have more appropriate event name
I have replaced all $ with jQuery to support noConflict mode of jQuery
also i have added support for afterClose event