don't use jquery cookie as the actual variable for string concatentation. closes #366