move google custom search code to external js