before loading to appfog
fix bugs for ie7 and change search object building