fix autorization js