Select mode repeat
Add tern.js