fix error with expected js source