add gallary. add google search

maintainable javascript to fix the home index.js