An attempt to make cc.p and cc.rect behave in html5 as they do in 2d-x. Looks okay, not positive if it's all good.