javascript for single predictions select