Clear out apiPrefetchVariable after initial get

- Add test of jQuery
- Made it work with jQuery