Java: Nashorn/JavaScript function to navigate Java Objects as structures | Hacker News Reader