fixing javascript issues...