a new javascript structure is needed