changed resizing canvas event
Added some jQuery to increase compatibility. Fixed reusableFunctionality.js bug.