adds some explanation to the example js