Fix for wrong javascript call