nit: I know you're using an open source library, but I'd personally prefer to rip out the unused pieces in FirefoxOS. I think we should probably try to only scope this to the window object.