Changed .size() calls to .length - jQuery deprecation

jQuery deprecated the use of .size() at release 1.8. Current Edge versions have dropped the function altogether.