Added js for window resize