javascript problem solved