Useful node javascript