Added charset info to javascript content type definition.
Simply expose apiBaseUrl as a var.