JS: Make Single Call Function