move checking code in to WebappManager.jsm