Updating PHP cookie examples to consider JS lib