diff --git a/audiofield.module b/audiofield.module
index 6c3ea88..3cb9519 100644
--- a/audiofield.module
+++ b/audiofield.module
@@ -114,7 +114,6 @@ function audiofield_theme() {
  * Get the object for the suitable player for the parameter resource
 */
 function audiofield_get_player($audio_url, $op) {
-  global $base_path;
    //Lets convert $op to lowercase
    $op = strtolower($op);
    $audio_players=audiofield_players();
@@ -123,7 +122,7 @@ function audiofield_get_player($audio_url, $op) {
    if (empty($player)) {
      return audiofield_embeddedplayer($audio_url);
    }
-  return call_user_func($player['callback'], $base_path . $player['path'], $audio_url);
+  return call_user_func($player['callback'], $player['path'], $audio_url);
 }
 
 /**
diff --git a/audiofield.players.inc b/audiofield.players.inc
index ab74f6b..73ddc84 100644
--- a/audiofield.players.inc
+++ b/audiofield.players.inc
@@ -291,9 +291,9 @@ function audiofield_jplayer($player_path, $audio_file) {
     drupal_add_css($audio_players['jplayer']['css']);
     return '<div id="jquery_jplayer_' . $instanceIndex . '" class="jp-jplayer"></div>
 
-    <div class="jp-audio">
+    <div id="jp_container_'.$instanceIndex.'" class="jp-audio">
       <div class="jp-type-single">
-      <div id="jp_interface_' . $instanceIndex . '" class="jp-interface">
+      <div id="jp_interface_' . $instanceIndex . '" class="jp-gui jp-interface">
       <ul class="jp-controls">
         <li><a href="#" class="jp-play" tabindex="1" style="display: block; ">play</a></li>
         <li><a href="#" class="jp-pause" tabindex="1" style="display: none; ">pause</a></li>
@@ -314,6 +314,8 @@ function audiofield_jplayer($player_path, $audio_file) {
   </div></div></div>
     <script type="text/javascript" >
           jQuery( "#jquery_jplayer_' . $instanceIndex . '" ).jPlayer({
+            swfPath: "' . $player_base_path . '",
+            cssSelectorAncestor: "#jp_container_' . $instanceIndex . '",
             ready: function() {
               jQuery(this).jPlayer( "setMedia", {
                   mp3 : "' . $audio_file . '"
@@ -322,4 +324,4 @@ function audiofield_jplayer($player_path, $audio_file) {
           });
       </script>';
   }
-}
\ No newline at end of file
+}
