Update rich.window.js

Allowing for position of window by passing top, right, left, bottom