dom manipulation in javascript geeksforgeeks