factorized more code out of asm.js
factorized fun_body_imperative_code out of asm.js
cleanup