resizeRock function now triggered on browser resize