JavaScript code for PE problem 199 added.