small bugfix for older jsapp