fix javascript of home page