Refactor classmates photos

Call function only after jQuery is loaded on page.