Small js update
Small fix to scope