added basic functionality for modals, and updated require config to use absolute urls