Refactor - load config script after angular is defined