Promoted dependency into module instead of mainjs