JavaScript code for PE problem 194 added.