A script with a few basic JavaScript functions