Added confirmation

Created external JS functions doc and created confirmation function.
Added function to key places in site docs.