Proper use of jQuery prop vs attr