login_extra snippet

{% include "socialaccount/snippets/login_extra.html" %} 

is required for javascript login to work.