Update resolver.js

Just a fix to the wording and a spelling correction