cookie+dom with jslint check