cleaning up javascript

for emc_bolierplate.js and index.html