Split out into a standalone js object