options should be replaced by extendedOptions

Hi @andris9, @felixhammerl 

now I know why my build broke. It seems a bug slipped into inbox. There is a var call "options" which is never declared. I presume it should be called "extendedOptions"?

I know this project is still a work in progress, but perhaps it wouldn't hurt to add some unit tests and a travis build? We'd be happy to help out in this regard.