[CHORE] Parse json string to get auth into javascript.
[FEATURE] Properly parse auth data into javascript object.