Fix flowplayer bug and add pdf.js library to resource