Clean up Kaminari views
Move Javascript to the top
Fix test