image and js fixes