conform better to JSONWP spec

since we might eventually be proxying through selenium in some cases, it's important to follow this spec very closely!