fixes top cover js for window resize