cleanup wasm code
add new AsmStrDup function