JS cleaned up using render partials, no if/else statements