updated JS DOM Manipulations