If you have multiple scripts it will not work due to a cache issue. Here is a patch that fixes the issue.