Fixed non-WebGL Javascript calculations, fixed up demo JS page controls