Remove old js after changing in class form