The issue seems to be randomly occurring. For instance, this same code was running. What I did to make the code break was to remove localStorageService from the controller definition and on reload, the code broke. I have replaced the localStorageService in the controller definition but still the code breaks.
The error in the browser console is:
Uncaught SyntaxError: Unexpected token .
Uncaught Error: [$injector:modulerr] http://docs.angularjs.org/error/$injector/modulerr?p0=lukaduka-pos&p1=Error:%20[$injector:nomod]%20http:%2F%2Ferrors.angularjs.org%2F1.2.12%2F$injector%2Fnomod%3Fp0%3Dlukaduka-pos %20%20%20%20)
I am a bit baffled by the Uncaught Error complaint. As you can see from the pastebin, the module definition looks fine.
Anyone with some insights? I am stumped.