Javascript Capacity Test