added base.js file, and linked html pages to it.