Easy pure js sprite animation "class"