minor update on javascript