added legacy window.raptor.defineClass() method