js version of topic loading