Added main and browser entry points for npm compatibility.