How define and manage the creation ( compliance with constraints defined by you ) of beans Javascript.