remove a function works, refresh without js error