change stylt to JS