A simple implementation in HTML5