Experimenting with pure JavaScript