JavaScript code for PE problem 232 added.