Solved name error of rails while executing node js script