Remove unsupported ua toLowercase, fix ua and remove debug message