Update and rename main.js to framework.js