api.reset: Removed dependency on jQuery