add image optimiser javascript