cleanup rshelpers.js