Use pure JavaScript code for node attribute retrieval

Use pure JavaScript code for node attribute retrieval to be consistent with https://github.com/Behat/MinkSelenium2Driver/pull/89.

This is an improvement over #16.