Variable Javascript String Functions Find