js: main.coffee, $(window).unload issue on refresh system pages

must find an other method to trigger logout when page is closed :)
assets: js, requirejs issue when cache is cleared