Flash screen example ported to JS