Bug 33282: Move get_title to index.js to be invoked by different specs