Move more stuff to js
Move office fetch to js