Calculate BASE_URL in the main view so a correct URL can be generated. Also, update readme