Update javascript-static.js

Added yesLabel property for confirmation dialog creation, because otherwise the dialog always shows the default "Yes", no matter what language is selected.