Don't construct titles like User:User:Hoo in JS

Furthermore we shouldn't manually get the base page
title (side effects in that code only made this
ever work).

Bug: 51399
Bug: 48683
Change-Id: I30876e541a861bf46e4302e3e3b1312b59363edc