new object type: JSON model
move global variables declaration and common functions into Qgis2threejs.js
add a combobox to select template