Passed MMM functions from server to Angular app