```javascript
// Create a new Sprite and set its image
var spongebob = new Sprite("spongebob.png");
// Make sure spongebob is in the center of the canvas
spongebob.x = (game.width/3)*2;
spongebob.y = (game.height/2);
// Create a function to move spongebob's mouth
function movespongebobMouth() {
// Every 10 frames, update spongebob's mouth image
if (game.frameCount % 10 === 0) {
if (spongebob.image === "spongebobOpenMouth.png") {
spongebob.image = "spongebob.png";
} else {
spongebob.image = "spongebobOpenMouth.png";
}
}
}
// Add the movespongebobMouth function to the game loop
game.onUpdate(movespongebobMouth);
// Draw spongebob to the screen
game.onDraw(spongebob);
```