added js gallery code