Simplify worked example notation and equations and clarify JavaScript method success conditions