JS to Index and Spacing

Maybe this workie