javascript: remove name from constructors