tabs to spaces
onload=true for ios