exampeles in javascript