Replace readAttribute with getAttribute

`readAttribute` is a function monkey-patched by Prototype, so it won't
be available after removing Prototype. The standard function is
`getAttribute`.

Tested:
- local server