clean some angular module code