Fixed incorrect docs on drawSprite and added link from draw2dSprite docs
Use epsilon check instead of equality.
Avoid calling splice if possible.
Cache subarrays.
Force the makehtml and maketzjs commands to depend on installation of all libraries (jslib + protolib)
Fixed spelling mistakes, too long lines and typos in sample descriptions