moved getTopicsByTids and getLatestTopics to topics.js