Swapped javascripts and body endblock
Added endblock names