Fix undeclared variable

With this change, the works after ngmin and uglifyjs