refactor: move script tags to end of body to not block early