using a trick to get the basename of a page, with it you can do conditionals to load scripts