Well, bug was fixed. The mangle feature in grunt-contrib-uglify had to be disabled :(