added javascript to main

I still don't understand the jQuery/Javascript connection