Duplicate javascript now in utils.js

Duplicates of methods across jsp files have been removed.  Instead of
having 1 copy of the script in each jsp, each jsp that uses one of the
previously duplicated scripts now references utils.js which improves
code maintainability.