Fixes #1134 - Javascript files ignore cookie prefix

Fixes #1134