I added a few simple JavaScript functions