updated to angular 1.2.7, changed getData function - old angular seems to handle promises differently