Update js/exercise.js

Duplicated var initialization