Added getUndoableFunction to JSAV.utils