Update rebound.js

Added missing `var` statements.