Updated scripts.js

Note: the cookie does not pick up new lines... (enter key). But it should be easy fix.