a boilerplate for libs that have to be compatible with nodejs, requirejs and plain vanilla javascript