Fixed indentation in JavaScript example

Fixes #9530