rebuilt js gallery