Update and rename bugrep.js to base.js