spiking out js for main pages