added resize javascript
added resize javascript actual script added