onresize bug fixed in index

synchronized resize event with draftercraft window (node-webkit)