JS fix, to unbreak chrome 35