Look at ruby on rails, django or any other framework. JavaScript is ALWAYS included in the templates.