simplifying js
adding filter functions for mobile iOS site.