Example of tQuery.headtrackr plugin -
three.js
+
tQuery API
for 3D /
headtrackr.js
for headtracking
press [space] to reset head tracking