common.require is now synchronous

No errors due to unloaded javascript files anymore. The require now also
expects a callback function.