ui-bootstrap end-to-end node script finished