Javascript for bots widget