fix resizing js