Use the correct CoffeeScript if-then-else construct for the restMode.
Use the correct CoffeeScript if-then-else construct for the restMode.

ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile