added new version with require js and new template for demos