changed js ordering because I'm losing my mind