Fix error on text and change JS setup