fixed some node js file issues