Fix a bug in using promises with comms: this -> that
Add the unlink method to javascript links to maintain compatibility with traitlet links