load JS libs on proper pages