updated js for dns