Seems to be working

Only need to merge lib/router.js.  Ignore the other files.

I forgot to say, you need a conditional around the contents of your function setActivitiesEdit(data){ ... }, as it was being called without data first and then with data later.