JS driver: fixed authentication problems