Detect when scripts change and reload the new version

Issue #330