if (typeof login != 'function') {
    function login(){
        window.location.href = '/?login';
    }
}