angular js files, main with angular function