split out asm shell in js optimizer, in preparation for minification of globals