How To Use Filter Function In Javascript