Update base.html

Fixing bug with javascript