Update: put all js controllers/services in self-executing functions