If you prefer to invoke the button it is declared as:
<input type="submit" class="button primary js-login-button" value="Log In" />
so you can retrieve it from the login form with:
var buttons = document.getElementsByClassName("button primary js-login-button");
The actual button should be the first and only element in buttons accessed through buttons[0] (don’t forget error checking)