cleaning up emc_boilerplate.js and adding examples