JS doc + new tests