refactoring augment.js addImplemented method.