errors on js file