I don't think it is possible to disable the execution of JavaScript in Blend.
Just like in the XAML world you can detect if your code is running in a designer, like Blend. Here's an example of how you might use that:
var isInDesigner = Windows.ApplicationModel.DesignMode.designModeEnabled;
if(!isInDesigner){
// code not running in Expression Blend
}