added script so query mobile shouldn't be placed in pages where it isn't needed