Celigo Interview Question

how to optimize javascript application