Migrated core code of shell to js/code.js and modified README.md