Replace javascript css markup for classes