Create utility.js

utility.js contains convenience javascript functions to be used by reports.