Correctly generate inquiry function for browser.

Correctly generate the inquiry function when the module is invoke using
a browser include.