Working on generic js driving thumbnail selector