Improving JavaScript Framework