Removed some event handlers
Added requirejs optimization