Vaadin & Javascript interaction

i am working on project which requires interaction between Vaadin & Javascript

i need to call javascript function when i click on a button and to do some javascript initialization in page startup
i cannot find a way to do. any help will be great

Mohamed Hassan