some minor bug fixes

hi, thanks for that nice webgl example.

i've found some minor problems.