implement withRequire functionality to append require angular module