fix the way of defining angular objects and dependencies,
so the files will be valid for minifcation.