Fixed indentation mistakes
Only open top level items with Javascript