Attempt to solve the Skyline Problem in JS.