diff --git a/jwplayermodule_jwembedder.js b/jwplayermodule_jwembedder.js
index a149208..b269b0a 100755
--- a/jwplayermodule_jwembedder.js
+++ b/jwplayermodule_jwembedder.js
@@ -10,7 +10,7 @@ Drupal.behaviors.jwplayerInit = function (context) {
     //A bit of a hack, but necessary to get inline events working.
     for (var index in config.events) {
       var temp = "";
-      eval("temp = function() {alert('Player Ready')}");
+      eval("temp = " + config.events[index]);
       config.events[index] = temp;
     }
     jwplayer($(this).attr('id')).setup(config);
