Improve scroll-to-modal functionality in the order modal.
Fix typo and jshint.