javascript done to thousands