JavaScript: flexslider object