Update Beam.js

Now Beam Class emit priorityUpdate with old and new priority.