JavaScript code for PE problem 147 added.