large scale javascript