Update custom.js

Adding function to get Cookie Value