diff --git a/IPython/html/static/widgets/js/widget_int.js b/IPython/html/static/widgets/js/widget_int.js
index 3f9f65f..da38931 100644
--- a/IPython/html/static/widgets/js/widget_int.js
+++ b/IPython/html/static/widgets/js/widget_int.js
@@ -67,7 +67,7 @@ define([
var max = this.model.get('max');
this.$slider.slider('option', 'value', min);
this.$slider.slider('option', 'orientation', orientation);
- value = this.model.get('value');
+ var value = this.model.get('value');
if(value > max) {
value = max;
}