Update title_bar.js

patch until node-webkit and windows 8 maximise/unmaximize works correctly