fix map js problem