Tried to put the js in a separate file.. Doesn't work for mysterious
reasons. Leaving it for the moment.
Added a little comment.