Update pulse.js

Added scheduling logic to the component(stuff still needs to be implemented there)