Fixing #17 and #12 and get_root in FirefoxOS