Adding createNode to the js