performance improvements, treshold setting

- :inview selector rewritten in pure js
- treshold can be set in configuration