fix my old js scripts