Canvas HTML5 Square Animation