*** moved custom JS function to embedded JS file and rename demo.js to
project.js
*** avoid JS error when no form (in composite page for example)
refs #173 - add workspace preference to disable analyze new trail