client side authentication works on localhost
noticed error
cleaned up latitude request code