Rename lists() into all()
Fix javascript errors by initializing jstree only when <li> exists