Fix resource path for JS reader