factoring out jquery