WebApp and dispatcher configuration for static html + javascript using ajax calls