Added JS folder and some library.
Added main page script that runs all things.