modified version of bower angular-x2js plugin