So I was moving a large chunk of javascript into an external file...upon reloading the page I kept seeing syntax errors in the htmldb_Get processes. (firebug, Firefox error console) What is causing this? I asked Scott and we eventually came to the following conclusion:
Original code in external file:
Next, I was asked by Scott "Is javascript PL/SQL??"
thus the following modification needed for all external JS files calling htmldb_Get.
One has to substitute &APP_ID. for $v('pFlowId') in all external JS files outside of the header tags. This will get rid of the syntax error.