Added in the cookie functionality to the other JavaScript file.