simple script to check availability of webpages