jQuery plugin to replace popup boxes (alert, confirm and prompt) based on deferred objects