Solved problem with JS minification and injection in controller

Waiting for 3.1.1 version tag solving this issue.