javascript set radio button checked based on value