Refactoring jplayer stuff.