Correcting JS custom