added additional options to cookie and applied JSHint fixes