Change the way html is added to node in js

fixes #1704