Tweak to work within nodewebkit as well