change create appointment for js