moving js up to avoid layout errors on loading yui search field