fixed naming of variables so it works on javascript export