finish js for example