Fix problem with uglify

Once the script minified, function doesn't keep their name, so
constructor.name return an empty string.