refactor option to use full js in configure, add EMCONFIGURE_JS option