fixed 'function is undefined' for flexslider.js and mymovies.js