fixed minor pep8
minor improve js in base.html