fix code style due to JShint