Make js more generic for the View More