node project working as designed