Martingale Bot

JavaScript code for Martingale bot. Added a few cleanups.