Review rhuet's Indexed DB tests

- Remove support.js
- Remove error checkCursorDirections
- Add back undefined event