Changes to support FirefoxOS