sprites and imges sequences with javascript