layers, $(window), js and jquery