fixed clip js for window resize