Changes to token object to match JavaScript name
Due to js_of_ocaml syntactic trick
Add missing parameter to authorize method
Fix token parameter