I've updated this not to used Obj.magic and cast to js_string manually