move Jplayer init to js