Rearranged shit so we can have JS at the bottom