Restore Jmol/JSmol popup menu and legacy add cell behavior

Javascript changes to restore legacy add cell behavior and avoid
collisions between popup dialogs and Jmol/JSmol popup menu. Also updated
menu to allow access to the Jmol/JSmol save file functions.