Transform double click in simple in ts.js and fixed indentation