I'm pretty sure you need to close it with a semicolon. Add it on the next line.
So variable declarations should look something like:
var up
    , down
    , etc
; // <- This is what I'm talking about.