validating json node script