[javascript mode] Support statementIndent option

Closes #1403