Fixes #1134 - Javascript files ignore cookie prefix

Fixes #1134
add forgotten "options"
Merge pull request #1137 from ATofighi/fix-1136

Fixes #1134 - Javascript files ignore cookie prefix