fixes JS error causing PayLater widget not to display onload