load javascript at the end of base.html and added extrajs block