Edit in JSFiddle

<html>

<head>
    <!-- ... your HTML content ... -->
</head>

<body>
    <!-- ... your HTML body content ... -->

    <div class="post">
        <!-- ... your post body content ... -->
        <div class="rw-ui-container rw-urid-17 rw-class-post"></div>
        <!-- ... more of your post body content ... -->
    </div>

    <!-- ... more of your HTML body content ... -->

    <div class="comment">
        <!-- ... your comment body content ... -->
        <div class="rw-ui-container rw-urid-171 rw-class-comment"></div>
        <!-- ... more of your comment body content ... -->
    </div>

    <!-- ... more of your HTML body content ... -->

    <div class="comment">
        <!-- ... your comment body content ... -->
        <div class="rw-ui-container rw-urid-172 rw-class-comment"></div>
        <!-- ... more of your comment body content ... -->
    </div>

    <!-- ... more of your HTML body content ... -->

    <div class="post">
        <!-- ... your post body content ... -->
        <div class="rw-ui-container rw-urid-36 rw-class-post"></div>
        <!-- ... more of your post body content ... -->
    </div>

    <!-- ... more of your HTML body content ... -->

    <div class="comment">
        <!-- ... your comment body content ... -->
        <div class="rw-ui-container rw-urid-361 rw-class-comment"></div>
        <!-- ... more of your comment body content ... -->
    </div>

    <!-- ... more of your HTML body content ... -->

    <div class="rw-js-container">
        <script type="text/javascript">
            function RW_Async_Init() {
                RW.init("someuseruniqueidsomeuseruniqueid");
                RW.initClass("post", {
                    type: RW.TYPE.STAR
                });
                RW.initClass("comment", {
                    type: RW.TYPE.NERO
                });
                RW.render();
            }

            if (typeof(RW) == "undefined") {
                (function() {
                    var rw = document.createElement("script");
                    rw.type = "text/javascript";
                    rw.async = true;
                    rw.src = "//js.rating-widget.com/external.min.js?v=267&t=js";
                    var s = document.getElementsByTagName("script")[0];
                    s.parentNode.insertBefore(rw, s);
                })();
            }
            }
        </script>
    </div>

</body>

</html>