I have a simple 3d simulation using three.js where the camera is surrounded in 3 dimens
I have created an example of exactly what you are looking for - a chase-camera (that follows a box around) at:
http://stemkoski.github.com/Three.js/#chase-camera