Added main.js

main.js implemented to externally reference JavaScript