AUI-799 - window does not fire event unload

Hey Nate,

Attached is a fix for the unload event not firing.  This update can be found at http://issues.liferay.com/browse/AUI-799.

Please let me know if you have any questions.

Thanks!

- Jon Mak