Fix add property button javascript