Java Add To Array If Else Javascript Html Parser Example