use jquery instead of native js syntax