Move JS to where it belongs: *before* closing body tag, not after