[js] compiler: improve instruction encoding debugging
[js] compiler: improve logging on composite instructions
[js] compiler: simplify push/pop API - lr is only relevant in two cases, so use the common functions then
[js] compiler: avoid redundant instruction in function call
[js] compiler: allocate stack space properly - without push