Updating: slightly improving some JS examples