refactoring deep/deep in deepjs/deep