Bootstrap, query, angularjs setting finish