bugfix for the js helper