js anchor bug