Applying javascript search os home page