a slightly hacky but entirely functional way to bootstrap the angular config from the server