fixed formatting on javascript