Changed default value for callback option to empty function instead of undefined

Triggering error when trying to call undefined value (Line 169)