[scale.js => main.js] Update and Rename
[index.html] Insert type (link and script)