'use strict';
$( document ).ready(function(){
- $('#login').detach().prependTo($('#sidebar')).on('click', function(e) {
+ $('<a role="button">Log in').prependTo($('#sidebar')).wrap('<div id="login">').on('click', function(e) {
var xhr = new XMLHttpRequest();
xhr.open('GET', '/login');
xhr.onload = function () {