index page Revision3. minor revise & make basic javascript function