Compounds comprising formula (I) or a pharmaceutically acceptable salt thereof, are disclosed, wherein J, B, Y, and A are as described. Methods, compositions, and medicaments related thereto are also disclosed, for treating baldness, glaucoma or inflammatory bowel diseases.