passing data in js file