cleaning up dev host entry in javascript