An implementation of camgaze in JavaScript