put the version in the ensure, to avoid constant refreshing of the class

Without ensure => version, the package constantly refreshes (causing a chain reaction down to refreshing the rest of the config)

Also added a dependency on Class['nodejs'] to avoid out-of-order execution.

Figured this would be better off being included in your existing PR