configure from javascript object
Merge pull request #1 from mgax/object-config

Configure from javascript object