javascript performance: data access