use js to build a beautiful page