Changed parameteres js