Fixed animate/render function. Get those semicolons off my lawn! This isn't javascript (kind of...).