ev
Only trigger 'resize' one per frame

Fixes a bug where 'resize' could get triggered multiple times in the same browser frame.
Use $.on() instead of addEventListener

Fixes a bug where Chrome was crashing on occassion for some reason.