Fix javascript basic code style