Using jquery functions instead of native ones