trying to find problem in js file