Use an `options` object instead of a boolean parameter

Avoid the boolean trap! http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html
Merge pull request #35 from mathiasbynens/options-object

Use an `options` object instead of a boolean parameter