Fixed JS route in ruleeditor