MDL-48643 Javascript: Create modals hidden, then show, to prevent scroll

Modal dialogs need to be created with visible: false and then call
.show() on it to make it visible. This prevents the page from jumping to
the top.