Allow JS access to cookies (fixes #132)