A bot written in javascript