Javascript Multiple Document Interface