changed base.html and main.js