JavaScript RSB prototype