Removed map() and filter() usage
Removed map() and filter() usage

Array's map and filter functions are available only from IE9. This modification allow the code to be ran on older browser.

Also renamed a function, have two things with the same name is not a best practice.

Documentation:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
baribadamshin/detect-browser,DamonOehlman/detect-browser,DamonOehlman/detect-browser