I have a script that work only if the users are in the main page. I used the method "location" to define it but i use an absolute URL, everything works but i need