simple sprite demo with javascript