Check for object length since focused() always returns an object

This never evaluated to true since the focused function always returned an object.
Merge pull request #3 from danoc/master

Add a focus class when there is none already