JS options made configurable and works as expected