init j-player at the beginning