Tidying up

Added util.js and formalized our Javascript underneath body tag.
Merge pull request #4 from SergBarrio/SergioFork

Tidying up