Updated index.php, fixed some list-users bugs, added some js-functionality