Commit example code to call angular function from legacy javascript code