[Javascript part 1]: Added CheckGivenObjectForGicenProperty