trying to integrate node data into js files