Assign methods to variables

Like angular-bootstrap
use constant to hold default options
Merge pull request #56 from jdewit/refactor/uify

Refactor/uify