Moved modal templates to separate directory.
Added header comment to lib, added CommonJS syntax support