Refactored token acquisition process.
Add js_cookie_name()
Add update_object()