--- a/ForgeTracker/forgetracker/templates/index.html
+++ b/ForgeTracker/forgetracker/templates/index.html
@@ -63,9 +63,9 @@
           </tbody>
         </table>
         ${c.subscribe_form.display(value=subscribed, action='subscribe')}
-        <script type="text/javascript">
-            $('tbody.ticket-list').children(':even').addClass('even');
-            $('tbody.change-list').children(':even').addClass('even');
-        </script>
   </body>
+  <script type="text/javascript">
+      $('tbody.ticket-list').children(':even').addClass('even');
+      $('tbody.change-list').children(':even').addClass('even');
+  </script>
 </html>