Moving teachers to js (Part 1)

Put the caching code in membership page.