html5 conversion of @sebleedelisle dot product interactive viewer