added JS snippet to find 2 closest numbers in an array of unique positive numbers