clean up NaN
refactor to test cookie name
qunit setup, teardown