using jquery 1.10 backward compatibility