Just some sample pure JavaScript code