analysis javascript