Filter JS to filter out JSON records