A javascript sprite engine