use local resources, fix firefox issue #30