Ming Jin: convert from local webpage application to server-side nodejs app