fixing javascript to fire for all materials including periodicals and yearbooks.