Fixes issue with JS