Remove $fh.ready
Move script tags to end of body