Using Foreach In Javascript Array Filter Method Mdnow