fixed some javascript errors

and cleaned up the image folder
changed the gallery button behavior and styling