js memory leak etc.