Flip x and y for bot js