added capitalize to .js which was more difficult than it should have been