Some javascript refactoring and a couple of more partials for listings