reform javascript