Move js to bottom, use less die messages