Add new javascript example for detecting valid json strings