This repo contains a force.com Visualforce page that demonstrates how you can surface user information through javascript.