a javascript weather vane