Get JS widget to use absolute URLs correctly, fixed buildURL to and absolute urls and a web directory correctly.