Added getUndoableFunction to JSAV.utils

Added getUndoableFunction to JSAV.utils and fixed some JSLint errors/warnings.