replace call() with js dirty variant