IE 8 fix & minor fix for

Fixed critical error in (window.requestAnimationFrame or
window.setTimeout).bind(window) , and defineShape fromJSON method that
returns two x