improvements for FirefoxOS support