Code cleanup
Patching p3d with a work around to firefox 18's transferable object issues