Moved command prompt logic to commandline.js in order to match LMB display logic