Here is the javascript file http://www.zaarly.com/anywhere.js
I'm calling Zaarly.Anywhere.open({title : 'iPad', description : 'An iPad', time : '6h', price : 200, mapCenter : 'San Francisco'}); from onclick event but it's giving this error in error console:
Zaarly.Anywhere is undefined
The script is included successfully in header, I've checked that Any suggestions? I'm new to javascript
I'm loading the javascript dynamically i.e. including it through javascript and it's loading correctly I've checked that