Change window.resize to $(window).resize();
Remove unnecessary code
Merge pull request #804 from Wylkon/reboot

Change window.resize to $(window).resize();