Further work to get module working with node