Improving code.
Created bot.js. Some changes were made to message_box.js classes, so it can be used in bot.js aswell.