make all functions in ht-dms.js available globally
add var put for where to output view