fixed js error on materials edit page - was trying to do angular form stuff on non-form object