update code style according to JShint