adding a definition in nodejs