fixed JavaScript capitalization

please excuse my pedantry, it's a bit of a pet peeve