small js fixes, resizing image on index