onresize EventListener thanks @paulirish