Write js console