refactored loading to enable injection of gwt-modules into js apps