Organizes JS code