js fix: forgot 'window'