Fixing prototype link.
Make it a factory and undefined callback fix.
First test.