JavaScript code for PE problem 435 added.