add functionality autoSelectFirstResult

fix CodeStandard (CS)
removed using the $ function. jquery type to native function typeof