graph controller
js for add node to map