Moved angular module and factory definitions to top of file and included bound guard in update function
Moved construct function inside $firebase factory and used its closure to capture angular services