api.reset: Removed dependency on jQuery

Addresses issue #318.