added exercise to cookies

Instead of inlining the options object here, lets declare it outside of the function call like in the (views solution)[https://github.com/hapijs/makemehapi/blob/master/exercises/views/solution/solution.js].