Javascript files only loaded on neccessary pages