micro javascript library for creating a cookie