Solved problem with JS minification and injection in controller