cleanup js code more (windowresize)