User is now able to clear command logs from the textbox, refactored command.js