Added base_url() in header.html

Added function base_url() in javascript code so that it can be used in
all .js files and all the links of ajax work properly.