Proof of concept for mdi behaviour using javascript in the browser