Update how the JS options are passed in