Added Javascript, currently iffy

The java script itself works, i have tested it out on an HTML file which
i have also uploaded, feel free to check that one out. For some reason
it is not properly running the script. I bet its a formatting issue or
somthing