Would-be Times Square bomber in court