Create javascript.js

Needs comments, which I will add.
Code includes Java/jQuery.