refactored JS code - introduces 'asysmon' module