Code that works in both HTML and Bash, and produces proper behaviors for both
sub.sh