A simple JavaScript program that illustrates how scientific code becomes a mess