Improving JavaScript-Framework