adding AMD and CommonJS support
adding default render method
upgrading libs in example