Nice :) You haven't defined $document so the test is failing and also this is in the switcher test not the keepalive test (although jquery is being included in this function - so you can leave this set of lines if you want :) )