Google Sheets Substring Function In Javascript With Parameters