regenerate javascript to remove unuseful console.log