Update javascript.js

Now works