add Solution 1-8 in JavaScript