Convert tabs to spaces in frontend JS.