optimize js/html