Is there an example of using "Prototype Window Class' with r

I feel like a bit of an idiot asking this but does anyone have an
example of http://prototype-window.xilinus.com/index.html being used
in rails. Should I try and feed it through page.call using rjh.
Like this:
page.call (‘win = new Window(“window_id”, {className: “mac_os_x”,
title: “Sample”, width:200, height:150});win.getContent().innerHTML =

Hello world !!

”;win.setDestroyOnClose();win.showCenter();’)

I think I am missing something really obvious.