Update Beam.js

Fix pillar.emit -> beam.emit