JS: move test for valid brace depth from 'getBraceDepth' to 'readBufferedStream'
JS: move test for valid brace depth from 'getBraceDepth' to 'readBufferedStream'

Signed-off-by: Harry King <409587b9e6671aa0763646191d292852dc49a658@gmail.com>

jaamsim/jaamsim,jaamsim/jaamsim,jaamsim/jaamsim,jaamsim/jaamsim