Changes handling of params to JS - if the str wasnt .