I got a mistake - i have created another function with same name on different script and used that script on same html page thats why this function will not run