Fixed javascript syntax errors in base.html