minor change to select row java script