add javascript to toggle tab in open.html