added includeFooter option. added minified version