Update spooky.js

Adding cookie support.