Passing transforms from CSS to JS