Fixed the JS. Template complete