A tiny script that takes care of all the cookie related problems in JavaScript