made lots of JS changes

still not working - the pictures all show up at once