edited js to capitalize letters