get contact id / angularjs / bug workaround