update code, lint js