Adding Javascript back

Going to need to consult someone on why everything half-breaks when I do this... I thought everything was coming out the way I needed...