fixing jQuery usage