Updating to use the correct js binding for funcitons