Attempted fix to the header and order of JS