Note that this question has been automatically mapped to reddit and answered there.

If you declare your state variables as public , a function to read their values will be automatically created by the compiler ("accessor function"). If you use the rich interface provided by web3.js, you can create a javascript contract object and just call message() on that to get the respective value.