use selenium instead of talking directly to phantom

Thanks to @jason0x43 for pointing out the bug.

Resolves #6