JavaScript syntax and indentation