Fixing the muliple funciton issues in the nodejs compiler