added baseTarget to getMiningInfo api. attempted minor cosmetic fix in javascript