Add to RW.js

Added utility functions and some to the game library