fix duration for jwplayer
Make duration a local variable
Clean up comments
make sure to set player as ready after duration is available
Assume that metadata about the video is available when duration is available
Merge pull request #420 from ilyakatz/jwplayer_duration_fix

Jwplayer duration fix