Adding niceScroll and infinitescroll directives.