Added active state

A bit inconsistent in Chrome/Mac, sometimes its activated, sometimes
not, but tested/ok in Firefox and Safari. Should solve GH-16.
Merge pull request #20 from jonespen/master

Added active state