Bug fix

JS ref fix