Use malloc instead of js_malloc so that it works on the phone.