elementary js dom manipulation