Made Javascript a little cleaner by moving to their own Jinja blocks.