Gh268 register descriptor through javascript

Issue #268