Fix jQuery cookie binding error
Add sample test code