Fix according to eric's comment
Add application javascript as mime type
Change doc of BASE_URL and be consistent with implementation (end /)