[minor] swap out jQuery extend
[fix] swap window with global