add doc notation for cookie
fix jshint