small fixes to generated javascript for jplayer