JSLint fixes

ran JSLint on modal.js, committing fixes