No need for checking A records
Refactoring js. Fixes #18.