Fixed positioning bug in Chrome. Added destroy method
update method for resize