Cleaned master-terminal main.js file.