Added subtract method to points
viewFrame rewritten with prototype pattern