Add JS goo to spec/index.html
URLEncode percents in imports