Make sign in work for JS, not only HTML