Move the output wrapper from main_jsflags to common_jsflags to avoid the dev bundle

I think this will have the wrapper file apply to the bootloader, which can use the smaller anonymous function