The cycle with alarm.js may be avoidable by doing `define(function(require, exports) {` then attaching all AlarmsDB properties to that exports object. So `export.DBNAME = ` and `export.putAlarm = function() {...` and then not doing the `return AlarmsDB` at the end.

Then, in this file use `(new require('alarm'))` instead of `new Alarm` and remove the require from the top of this module, as the loader will see the inlined require('alarm') calls further down and know what to do.