Make SP2013 version independent from SPServices