#7: define base-path parameter in recorder_attributes.js
#7: remove inline js in main.php