Update RW.js

switched to use 'init' method instead of instantiating in constructor.