JavaScript code for PE problem 106 added.