Fixed the zone file dependency wrapper so that it now works in both browswer and on the server.