Update main.js

Added some code. Most of it is useless. Added it so that I could practice. Feel free to delete without any comments or questions.