[js] compiler: move common 'eval' functions to js_eval_common.h
[js] compiler: infrastructure for multi statement compilation
[js] compiler: rename mem_cache