UPDATE: Added base folders so that separate javascript folders can be used.
UPDATE: Dbm classes are now relative to the base folder.