Delete js from photo gallery