made js work on all pages