Replacing JS import changes that were lost in a merge

@anguss00