added minor guidelines changes to index.js
minor guidelines changes to index.js and added pre-load of the components visualization