Added Start/End functions to widget JS