JS prepare exmaple