initial implementation without jQuery
fix example to remove jQuery