resolve js problem