Fixes issue where code was attempting to iterate over an array using for/in syntax.
Fixes issue where calling scrollIntoView on an empty jQ array throws an unhandled exception.
Merge pull request #1 from kbaltrinic/master

apply kbaltrinic fixes