Text aligning js corrections