node and javascript code