Update rich.window.js

Removing app specific code