Revise K2JS to write SDK script tags to end of body.