Add loc click funcion to helper.js