replaced Point.prototype.pool array with Point.pool function
replaced Shape.prototype.pool array with Shape.pool function
replaced Point.prototype.create with Point.create
replaced Point.prototype.count with Point.count
replaced Shape.prototype.create with Shape.create
replaced Shape.prototype.count with Shape.count
tidying up previous commits
if in global mode, drawing methods are copied to the global object
just html testing the global methods