make it work when uglify if not using ngmin

Hi @btford , I want to use this directive in my project. But after `uglify`, your code doesn't work, I know I can fix it by using `ngmin`.

But I don't want to use `ngmin`, so I just change a litter code to make it work when `uglify` without `ngmin`.